package com.qing.provider.service;

import com.qing.api.pojo.User;
import com.qing.provider.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {


    @Autowired
    private UserMapper userMapper;


    @Override
    public void addUse(User user) {
        userMapper.addUse(user);
    }

    @Override
    public User queryById(Long id) {
        return userMapper.queryById(id);
    }

    @Override
    public List<User> queryUser(String name) {
        return userMapper.queryUser(name);
    }

    @Override
    public void deleteById(Long id) {
        userMapper.deleteById(id);
    }
}
